using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using QuanLyThietBi.Config;     
using QuanLyThietBi.Entity;
namespace QuanLyThietBi.ManagerBase
{
                

     public abstract class TBL_ChiTietXuatKhoBanGiaoManagerBase
    {
        public TBL_ChiTietXuatKhoBanGiaoManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>TBL_ChiTietXuatKhoBanGiaoEntity</returns>
        public TBL_ChiTietXuatKhoBanGiaoEntity Insert(TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return (TBL_ChiTietXuatKhoBanGiaoEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>TBL_ChiTietXuatKhoBanGiaoEntity</returns>
        public TBL_ChiTietXuatKhoBanGiaoEntity Update(TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return (TBL_ChiTietXuatKhoBanGiaoEntity)Adapter.Update(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo dieu kien trong object
        /// </summary>
        /// <returns>TBL_ChiTietXuatKhoBanGiaoEntity</returns>
        public TBL_ChiTietXuatKhoBanGiaoEntity UpdateWithCondition(TBL_ChiTietXuatKhoBanGiaoEntity obj,TBL_ChiTietXuatKhoBanGiaoEntity objCond)
        { 
            return (TBL_ChiTietXuatKhoBanGiaoEntity)Adapter.UpdateWithCondition(obj,objCond);             
        }
 
 
        public TBL_ChiTietXuatKhoBanGiaoEntity Delete(TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return (TBL_ChiTietXuatKhoBanGiaoEntity)Adapter.Delete(obj);             
        }
 
 
        public TBL_ChiTietXuatKhoBanGiaoEntity DeleteWithCondition(TBL_ChiTietXuatKhoBanGiaoEntity objCond)
        { 
            return (TBL_ChiTietXuatKhoBanGiaoEntity)Adapter.DeleteWithCondition(objCond);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaCTBG duoc set trong object
        /// </summary>
        /// <returns>TBL_ChiTietXuatKhoBanGiaoEntity</returns>
        public TBL_ChiTietXuatKhoBanGiaoEntity DeleteByMaCTBG (TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return (TBL_ChiTietXuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"MaCTBG");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaCTBG 
        /// </summary>
        /// <returns>TBL_ChiTietXuatKhoBanGiaoEntity</returns>
        public TBL_ChiTietXuatKhoBanGiaoEntity DeleteByMaCTBG (string MaCTBG )
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaCTBG = MaCTBG;  
            return (TBL_ChiTietXuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"MaCTBG");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>TBL_ChiTietXuatKhoBanGiaoEntity</returns>
        public TBL_ChiTietXuatKhoBanGiaoEntity DeleteByMaPX (TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return (TBL_ChiTietXuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"MaPX");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaPX 
        /// </summary>
        /// <returns>TBL_ChiTietXuatKhoBanGiaoEntity</returns>
        public TBL_ChiTietXuatKhoBanGiaoEntity DeleteByMaPX (string MaPX )
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaPX = MaPX;  
            return (TBL_ChiTietXuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"MaPX");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>TBL_ChiTietXuatKhoBanGiaoEntity</returns>
        public TBL_ChiTietXuatKhoBanGiaoEntity DeleteByMaTB (TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return (TBL_ChiTietXuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"MaTB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaTB 
        /// </summary>
        /// <returns>TBL_ChiTietXuatKhoBanGiaoEntity</returns>
        public TBL_ChiTietXuatKhoBanGiaoEntity DeleteByMaTB (string MaTB )
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaTB = MaTB;  
            return (TBL_ChiTietXuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"MaTB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>TBL_ChiTietXuatKhoBanGiaoEntity</returns>
        public TBL_ChiTietXuatKhoBanGiaoEntity DeleteBySoLuong (TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return (TBL_ChiTietXuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"SoLuong");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien SoLuong 
        /// </summary>
        /// <returns>TBL_ChiTietXuatKhoBanGiaoEntity</returns>
        public TBL_ChiTietXuatKhoBanGiaoEntity DeleteBySoLuong (int SoLuong )
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.SoLuong = SoLuong;  
            return (TBL_ChiTietXuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"SoLuong");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public TBL_ChiTietXuatKhoBanGiaoEntity Select(TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return (TBL_ChiTietXuatKhoBanGiaoEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_ChiTietXuatKhoBanGiaoEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new TBL_ChiTietXuatKhoBanGiaoEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new TBL_ChiTietXuatKhoBanGiaoEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectAllLST()
        { 
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_ChiTietXuatKhoBanGiaoEntity()),new TBL_ChiTietXuatKhoBanGiaoEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_ChiTietXuatKhoBanGiaoEntity(),option),new TBL_ChiTietXuatKhoBanGiaoEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTBG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCTBG (TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaCTBG");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTBG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCTBG (TBL_ChiTietXuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaCTBG",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTBG duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietXuatKhoBanGiaoEntity></returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectByMaCTBGLST (TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCTBG"),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTBG duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietXuatKhoBanGiaoEntity></returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectByMaCTBGLST (TBL_ChiTietXuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaCTBG",option),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTBG 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCTBG (string MaCTBG )
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaCTBG = MaCTBG;  
            return Adapter.SelectByField(obj,"MaCTBG");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTBG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCTBG (string MaCTBG, SelectOptions option)
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaCTBG = MaCTBG;  
            return Adapter.SelectByField(obj,"MaCTBG",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTBG 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectByMaCTBGLST (string MaCTBG )
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaCTBG = MaCTBG;  
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCTBG"),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTBG duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectByMaCTBGLST (string MaCTBG, SelectOptions option)
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaCTBG = MaCTBG;  
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCTBG",option),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPX (TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaPX");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPX (TBL_ChiTietXuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaPX",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietXuatKhoBanGiaoEntity></returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectByMaPXLST (TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPX"),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietXuatKhoBanGiaoEntity></returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectByMaPXLST (TBL_ChiTietXuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaPX",option),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPX (string MaPX )
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaPX = MaPX;  
            return Adapter.SelectByField(obj,"MaPX");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPX (string MaPX, SelectOptions option)
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaPX = MaPX;  
            return Adapter.SelectByField(obj,"MaPX",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectByMaPXLST (string MaPX )
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaPX = MaPX;  
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPX"),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectByMaPXLST (string MaPX, SelectOptions option)
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaPX = MaPX;  
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPX",option),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTB (TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaTB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTB (TBL_ChiTietXuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaTB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietXuatKhoBanGiaoEntity></returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectByMaTBLST (TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaTB"),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietXuatKhoBanGiaoEntity></returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectByMaTBLST (TBL_ChiTietXuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaTB",option),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTB (string MaTB )
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaTB = MaTB;  
            return Adapter.SelectByField(obj,"MaTB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTB (string MaTB, SelectOptions option)
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaTB = MaTB;  
            return Adapter.SelectByField(obj,"MaTB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectByMaTBLST (string MaTB )
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaTB = MaTB;  
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaTB"),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectByMaTBLST (string MaTB, SelectOptions option)
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.MaTB = MaTB;  
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaTB",option),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySoLuong (TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return Adapter.SelectByField(obj,"SoLuong");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySoLuong (TBL_ChiTietXuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"SoLuong",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietXuatKhoBanGiaoEntity></returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectBySoLuongLST (TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"SoLuong"),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietXuatKhoBanGiaoEntity></returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectBySoLuongLST (TBL_ChiTietXuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"SoLuong",option),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySoLuong (int SoLuong )
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.SoLuong = SoLuong;  
            return Adapter.SelectByField(obj,"SoLuong");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySoLuong (int SoLuong, SelectOptions option)
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.SoLuong = SoLuong;  
            return Adapter.SelectByField(obj,"SoLuong",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectBySoLuongLST (int SoLuong )
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.SoLuong = SoLuong;  
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"SoLuong"),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoLuong duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectBySoLuongLST (int SoLuong, SelectOptions option)
        { 
            TBL_ChiTietXuatKhoBanGiaoEntity obj = new TBL_ChiTietXuatKhoBanGiaoEntity();
            obj.SoLuong = SoLuong;  
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"SoLuong",option),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietXuatKhoBanGiaoEntity></returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectWithConditionLST (TBL_ChiTietXuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietXuatKhoBanGiaoEntity></returns>
        public List<TBL_ChiTietXuatKhoBanGiaoEntity> SelectWithConditionLST (TBL_ChiTietXuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietXuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new TBL_ChiTietXuatKhoBanGiaoEntity());
        }

}
}
